package com.lzx.iteam.bean;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Created by liukun on 15-1-25.
 */
public class ElementData implements Serializable {


	public ArrayList<CloudContact> contactList;

	/**
     * 文字内容
     */
    public String contentText;
    /**
     * 在tree中的层级
     */
    public int level;
    /**
     * 元素的id
     */
    public int id;
    /**
     * 父元素的id
     */
    public int parendId;
    /**
     * 联系人数量
     */
    public int contactCount;
    /**
     * 是否有子元素
     */
    public boolean hasChildren;
    /**
     * item是否展开
     */
    public boolean isExpanded;
    /**
     * group 的id
     */
    public int groupId;

    //public String path;

    public String type;

    /**
     * 表示该节点没有父元素，也就是level为0的节点
     */
    public static final int NO_PARENT = -1;
    /**
     * 表示该元素位于最顶层的层级
     */
    public static final int TOP_LEVEL = 0;

    public ElementData(String contentText, int level, int id, int parendId,
                       boolean hasChildren, boolean isExpanded) {
        super();
        this.contentText = contentText;
        this.level = level;
        this.id = id;
        this.parendId = parendId;
        this.hasChildren = hasChildren;
        this.isExpanded = isExpanded;
    }


    public ElementData() {

    }

    public boolean isExpanded() {
        return isExpanded;
    }

    public void setExpanded(boolean isExpanded) {
        this.isExpanded = isExpanded;
    }

    public String getContentText() {
        return contentText;
    }

    public void setContentText(String contentText) {
        this.contentText = contentText;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getParendId() {
        return parendId;
    }

    public void setParendId(int parendId) {
        this.parendId = parendId;
    }

    public boolean isHasChildren() {
        return hasChildren;
    }

    public void setHasChildren(boolean hasChildren) {
        this.hasChildren = hasChildren;
    }

    public int getContactCount() {
        return contactCount;
    }

    public void setContactCount(int contactCount) {
        this.contactCount = contactCount;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }
/*
    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }
*/
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
